package com.ity.teamanagement.service;

import com.ity.teamanagement.entity.OtherTeaImg;
import com.ity.teamanagement.entity.TeaImg;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author coderFu
 * @create 2021/6/2
 */
public interface FileService {

    /**
     * 存储茶种图片
     * @param multipartFile
     * @param imgType
     * @param keyId
     * @return
     */
    TeaImg saveImg(MultipartFile multipartFile, Long imgType, Long keyId);

    /**
     * 根据id删除茶种图片
     * @param id
     * @return
     */
    TeaImg deleteTeaImg(Long id);

    /**
     * 存储其它图片信息
     * @param multipartFile
     * @param keyId
     * @return
     */
    OtherTeaImg uploadOtherImg(MultipartFile multipartFile, Long keyId);

    /**
     * 根据id删除其它图片信息
     * @param id
     * @return
     */
    OtherTeaImg deleteOtherImg(Long id);
}
